package server;

import java.io.IOException;
import java.net.ServerSocket;

public class ServerLit {
    private ServerSocket serverSocket;
    private int port;

    public ServerSocket getServerSocket() {
        return serverSocket;
    }

    public void setServerSocket(ServerSocket serverSocket) {
        this.serverSocket = serverSocket;
    }

    public ServerLit(int port) {

        this.port = port;
        System.out.println("server starts ！");
        try {
            serverSocket =new ServerSocket(this.port);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }


    }


}
